# Maintainer:
# Contributor: Eivind Uggedal <eu@eju.no>
pkgname=spawn-fcgi
pkgver=1.6.4
pkgrel=4
pkgdesc="Spawn FastCGI applications"
url="http://redmine.lighttpd.net/projects/spawn-fcgi/"
arch="all"
license="BSD-3-Clause"
depends=""
makedepends=""
subpackages="$pkgname-doc"
source="https://www.lighttpd.net/download/$pkgname-$pkgver.tar.bz2
	$pkgname.confd
	$pkgname.initd
	"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure --prefix=/usr
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install

	install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	install -Dm644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}

sha512sums="defe3b0e21952f6a852237f4677b446757bd0dbccc6609beb2094c59b12de7814a76525554731ad3b52d10060bb0b4060b4f5c4fc3e14cd35f59c30cc583b6b9  spawn-fcgi-1.6.4.tar.bz2
44fdc908b868d890713b1eee8f8f5a7ff1a26d0665aa368e76587d479934bbda0a3e4ccd53953fef524103630261c40495cd58963fdea11a47e2cd0f23e1dcf6  spawn-fcgi.confd
c6b44dbdac2ac53d7c26acfa1d433dd81d12fce35e9ba0c7d1341e5da16c6453fdd65de073b22a091b425799b01f08385b3293e33f505d4c26764826e5ab9084  spawn-fcgi.initd"
